#if !defined(__OTA_MEMCHUNK_H__)
#define __OTA_MEMCHUNK_H__

typedef struct {
    char *data;
    int size;
} MemChunk;

int ota_memchunk_init(MemChunk *chunk);

int ota_memchunk_append(MemChunk *chunk, void *data, int size);

void ota_memchunk_free(MemChunk *chunk);

#endif // __OTA_MEMCHUNK_H__
